// import request from "@/utils/request.js";

// // 查询仓库作业分页
// export const queryWarehouseOperationsPage = (jobCode,page,pageSize) => request.get(`/operations?jobCode=${jobCode}&page=${page}&pageSize=${pageSize}`)

import request from "@/utils/request";

// 新增仓库作业
export const addOperationApi = (data) => request.post('/warehouseOperations', data)

// 分页查询仓库作业
export const queryOperationsByPageApi = (jobCode, status, pageNum, pageSize) => request.get(`/warehouseOperations/page?jobCode=${jobCode}&status=${status}&pageNum=${pageNum}&pageSize=${pageSize}`)

// 查询仓库作业详情
export const queryOperationDetailByIdApi = (id) => request.get(`/warehouseOperations/detail/${id}`)

// 确认仓库作业
export const confirmOperationApi = (id) => request.put(`/warehouseOperations/confirm/${id}`)

// 调整仓库作业
export const adjustOperationApi = (id) => request.put(`/warehouseOperations/adjust/${id}`)

// 删除仓库作业
export const deleteOperationApi = (id) => request.delete(`/warehouseOperations?id=${id}`)